package com.wf.smartcomm.server.bean;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import com.google.gson.annotations.Expose;

/** 
 * @author 38884306@qq.com  
 * @version ����ʱ�䣺2015-5-18 ����11:14:31 
 * 
 */
@Entity
@Table(name = "t_guide")
public class Guide {
	@Expose
	@Id
	@Column(length = 32)
	private String objectId;
	
	@Expose
	@Column(length = 32)
	private String subject;
	
	@Type(type="text")
	@Column
	private String content;
	
	@Expose
	@Column(length = 1024)
	private String imageUrl;
	
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name = "vid")
	private Village village;
	
	@Column(length = 20)
	private String createdAt;
	
	@Expose
	@Column(length = 20)
	private String updateAt;

	public Village getVillage() {
		return village;
	}

	public void setVillage(Village village) {
		this.village = village;
	}

	public String getUpdateAt() {
		return updateAt;
	}

	public void setUpdateAt(String updateAt) {
		this.updateAt = updateAt;
	}

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(String createdAt) {
		this.createdAt = createdAt;
	}

}
